package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.OrderLogMapper;
import com.whq.entity.OrderLog;
import com.whq.service.OrderLogService;

@Service(value = "tdOrderLogService")
public class OrderLogServiceImpl implements OrderLogService {

    @Autowired
    private OrderLogMapper<OrderLog>tdOrderLogMapper;
    
    @Override
    public Integer insertSelective(OrderLog tdOrderLog) throws Exception {
           return this.tdOrderLogMapper.insertSelective(tdOrderLog);
        }

    @Override
    public Integer insertBatch(List<OrderLog> tdOrderLog) throws Exception {
           return this.tdOrderLogMapper.insertBatch(tdOrderLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdOrderLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdOrderLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(OrderLog tdOrderLog) {
           return this.tdOrderLogMapper.updateByPrimaryKeySelective(tdOrderLog);
    }

    @Override
    public OrderLog findById(Object id) {
           return (OrderLog) this.tdOrderLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<OrderLog> selectByCondition(OrderLog tdOrderLog) {
           return (List<OrderLog>) this.tdOrderLogMapper.selectByCondition(tdOrderLog);
    }

    @Override
    public Integer selectCountByCondition(OrderLog tdOrderLog) {
           return  this.tdOrderLogMapper.selectCountByCondition(tdOrderLog);
    }

}
